package com.dxy.hms.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;

import com.dxy.hms.dict.DictField;
import com.dxy.hms.dict.DictTranslate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 房间表
 * </p>
 *
 * @author dxy
 * @since 2024-10-29
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("hms_room")
@ApiModel(value = "Room对象", description = "房间表")
public class Room implements DictTranslate {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableLogic
    private Integer isDeleted;

    @TableField(fill = FieldFill.INSERT)
    private Long createUserId;

    @TableField(fill = FieldFill.INSERT)
    private String createUserName;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUserId;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateUserName;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("房间编号")
    private String roomCode;

    @ApiModelProperty("房间类型")
    private Long roomType;

    @ApiModelProperty("房间状态，1-空闲，2-维修，3-入住")
    @DictField
    private String roomStatus;

    @ApiModelProperty("房间描述")
    private String roomDesc;

    @TableField(exist = false)
    private String roomTypeName;
    @TableField(exist = false)
    private Integer price;
    @TableField(exist = false)
    private Integer bedNum;

}
